/**
 * @Author YuanYuan
 * @Date 2022/5/11
 * @Time 17:58
 */
class superClass {
    public int age1 = 1;
    private int age2 = 2;
    public static int age3 = 3;
    /**
     实例内部类
    */
    class downClass {
        public int age1 = 111;
        public int age4 = 4;
        private int age5 = 5;
        public final static int AGE6 = 6;

        public downClass(){
            System.out.println("实例内部类的构造方法");
        }
        public void func1(){
            System.out.println("实例内部类的普通方法");
            System.out.println(age1);
            System.out.println("外部类的: "+ superClass.this.age1);
            System.out.println(age2);
            System.out.println(age3);
            System.out.println(age4);
            System.out.println(age5);
        }


    }
    public void func2() {
        downClass downclass = new downClass();
        System.out.println(downclass.age1);
    }
}
public class Tset2 {
    //superClass aClass = new superClass() ;

   // superClass.downClass Class = aClass.new downClass();
   public static void main(String[] args) {
//       superClass.downClass Class = new superClass().new downClass();
//       Class.func1();
       superClass superclass = new superClass();
       superclass.func2();

   }
}
